# == Schema Information
#
# Table name: articles
#
#  id          :integer(4)      not null, primary key
#  title       :string(255)
#  subhead     :string(255)
#  summary     :string(255)
#  body        :text
#  is_public   :boolean(1)
#  category_id :integer(4)
#  created_at  :datetime
#  updated_at  :datetime
#

class Article < ActiveRecord::Base
  validates_presence_of :category_id ,:title
  belongs_to :category

end
